import { request } from '@ruifox-cms/utils'

// 获取表单答卷详情
export function selectPaperResult(params) {
    return request({
        baseURL: process.env.NODE_ENV == 'development' ? '/form_api' : '/api',
        url: '/form/api/paperResult/select',
        method: 'get',
        params
    })
}

// 更新答卷状态
export function updatePaperResultState(data) {
    return request({
        baseURL: process.env.NODE_ENV == 'development' ? '/form_api' : '/api',
        url: '/form/api/paperResult/updateState',
        method: 'post',
        data
    })
}